<%--
    Document   : registrationForm
    Created on : 26.1.2013, 17:47:19
    Author     : Erik-Desktop
--%>

<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@taglib prefix="s" uri="http://stripes.sourceforge.net/stripes.tld" %>
<%@taglib prefix="tiles" uri="http://tiles.apache.org/tags-tiles" %>

<s:form beanclass="cz.muni.fi.pa165.ddtroops.web.actionbeans.AdminRegistrationActionBean">
    <div class="raceForm">
        <c:if test="${not empty pageContext.request.getParameter('reg_error')}">
            <div class="errorblock">
                    <c:out value="User already registered"/>
            </div>
    </c:if>
        <legend><tiles:getAsString name="legend"/></legend>
        <s:errors/>
    <div id="form">
        <div class="row">
            <s:label for="b1" name="user.name"/>
            <s:text id="b1" name="user.name"/>
            <div class="accordion">
                <s:label for="requiredValue"/>
            </div>
        </div>
        <div class="row">
            <s:label for="b2" name="user.password"/>
            <s:password id="b2" name="user.password"/>
            <div class="accordion">
                <s:label for="requiredValue"/>
            </div>
        </div>
        <div class="row">
            <s:label for="b3" name="confirmPassword"/>
            <s:password id="b3" name="confirmPassword"/>
            <div class="accordion">
                <s:label for="requiredValue"/>
            </div>
        </div>
        <div class="cent">
             <s:submit name="${action}"><tiles:getAsString name="button"/></s:submit>
        </div>
    </div>
    </div>
</s:form>